<div class="box box-default">
    <div class="box-header with-border">
        <h3 class="box-title">我的日程</h3>
        <button class="btn btn-primary btn-sm" data-toggle="modal" data-target="#myModal" style="margin: -2px 0 0 50px">添加日程
        </button>
        <div class="box-tools pull-right">
            <button type="button" class="btn btn-box-tool" data-widget="collapse"><i class="fa fa-minus"></i>
            </button>
        </div>
    </div>
    <!-- /.box-header -->
    <div class="box-body">
        <div id="myCarousel" class="carousel slide">
            <!-- 轮播（Carousel）指标 -->
            <ol class="carousel-indicators">
                <li data-target="#myCarousel" data-slide-to="0" class="active"></li>
                <li data-target="#myCarousel" data-slide-to="1"></li>
                <li data-target="#myCarousel" data-slide-to="2"></li>
            </ol>   
            <!-- 轮播（Carousel）项目 -->
            <div class="carousel-inner">
                <div class="item active" style="margin: 0 0 0 10px">
                    <h2>请点击左右箭头进行查看</h2>
                </div>
                @foreach($rc as $rc)
                 <div class="item">
                    @if($rc['level'] == 2)
                    <span class=".label label-success">类型：</span>个人日程</br>
                    @elseif($rc['level'] == 1)
                    <span class=".label label-success">类型：</span>部门日程</br>
                    @else
                    <span class=".label label-success">类型：</span>未知类型</br>
                    @endif
                    <span class=".label label-success">时间：</span>{{$rc['time']}}</br>
                    <span class=".label label-info">地点：</span>{{$rc['addr']}}</br>
                    <span class=".label label-warning">内容：</span>{{$rc['content']}}
                </div>
                @endforeach
            </div>
            <!-- 轮播（Carousel）导航 -->
            <a class="left carousel-control" href="#myCarousel" role="button" data-slide="prev">
                <span class="glyphicon glyphicon-chevron-left" aria-hidden="true"></span>
                <span class="sr-only">Previous</span>
            </a>
            <a class="right carousel-control" href="#myCarousel" role="button" data-slide="next">
                <span class="glyphicon glyphicon-chevron-right" aria-hidden="true"></span>
                <span class="sr-only">Next</span>
            </a>
        </div>
    </div>
</div>
